/*
 * @(#)AdapterMasterFactory.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.framework;

import java.sql.Connection;

import com.dcivision.alert.core.AdapterMaster;

/**
  AdapterMasterFactory.java

  This class is the singleton to store the message resources used in the system.

    @author          Scott Tong
    @company         DCIVision Limited
    @creation date   08/26/2003
    @version         $Revision: 1.3 $
*/

public class AdapterMasterFactory {

  public static final String REVISION = "$Revision: 1.3 $";

  protected static AdapterMaster am;

  private AdapterMasterFactory() {
  }

  public static void init(SessionContainer sessionContainer, Connection conn) {
    am = new AdapterMaster(sessionContainer, conn);
  }

  public static AdapterMaster getAdapterMaster(SessionContainer sessionContainer, Connection conn) {
    am = new AdapterMaster(sessionContainer, conn);
    return(am);
  }

}